package com.bdqn.ch03.SL;

import com.bdqn.ch03.pojo.IntermediaryCglibProxyFactory;
import com.bdqn.ch03.service.impl.RealBuyer;
import org.apache.log4j.Logger;

/**
 * IntermediaryCglibProxyFactoryTest
 *
 * @aurhor Administrator  whs
 * @since 2024/7/1
 */
public class IntermediaryCglibProxyFactoryTest {
    private Logger logger = Logger.getLogger(IntermediaryCglibProxyFactoryTest.class);

    public void havealookCglibProxy() throws Exception {
        RealBuyer buyer = IntermediaryCglibProxyFactory.create(RealBuyer.class);
        String result = buyer.havealook();
        logger.debug(result);
    }

    public static void main(String[] args) throws Exception {
        IntermediaryCglibProxyFactoryTest proxyFactory = new IntermediaryCglibProxyFactoryTest();
        proxyFactory.havealookCglibProxy();
    }
    /**
     *2024-07-01 20:38:37 [DEBUG] 前期准备。 com.bdqn.ch03.pojo.IntermediaryMethodInterceptor.before(IntermediaryMethodInterceptor.java:36)
     * 2024-07-01 20:38:37 [DEBUG] 查找房源。 com.bdqn.ch03.pojo.IntermediaryMethodInterceptor.before(IntermediaryMethodInterceptor.java:37)
     * 2024-07-01 20:38:37 [DEBUG] 和卖家沟通时间。 com.bdqn.ch03.pojo.IntermediaryMethodInterceptor.before(IntermediaryMethodInterceptor.java:38)
     * 2024-07-01 20:38:37 [DEBUG] 实地查看一下 com.bdqn.ch03.service.impl.RealBuyer.havealook(RealBuyer.java:22)
     * 2024-07-01 20:38:37 [DEBUG] 后期跟踪。 com.bdqn.ch03.pojo.IntermediaryMethodInterceptor.after(IntermediaryMethodInterceptor.java:41)
     * 2024-07-01 20:38:37 [DEBUG] 和买家沟通意见。 com.bdqn.ch03.pojo.IntermediaryMethodInterceptor.after(IntermediaryMethodInterceptor.java:42)
     * 2024-07-01 20:38:37 [DEBUG] 看房记录：买家反馈“一些意见” com.bdqn.ch03.SL.IntermediaryCglibProxyFactoryTest.havealookCglibProxy(IntermediaryCglibProxyFactoryTest.java:19)
     */

}
